//
//  CELogItem.h
//  CELog_Example
//
//  Created by maoerduo on 2021/2/25.
//  Copyright © 2021 maoerduo. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@protocol CELogItem <NSObject>

- (NSDictionary<NSString *, NSString *> *)content;

@end




@protocol CEDurationLogItem <CELogItem>

@property (nonatomic, assign) NSTimeInterval startTime;
@property (nonatomic, assign) NSTimeInterval duration;

- (void)start;
- (void)stop;
- (void)pause;

@end




@protocol CEPageLogItem <CELogItem>

@property (nonatomic, copy) NSString * pageName;

@end




@protocol CEEventLogItem <CELogItem>

@property (nonatomic, copy) NSString * eventName;

@end



@protocol CELogUpdate <NSObject>

- (void)update:(NSDictionary<NSString *, NSString *> *)log;

@end



NS_ASSUME_NONNULL_END
